import { request } from "./request";
export function getRolesList() {
    return request({
        method: 'get',
        url: 'roles'
    })
}
export function addRoles(params) {
    return request({
        method: 'post',
        url: 'roles',
        data: params
    })
}
export function queryRolesId(url) {
    return request({
        method: 'get',
        url: url,
    })
}
export function saveEditRoles(url, params) {
    return request({
        method: 'put',
        url: url,
        data: params
    })
}
export function removeRoles(url) {
    return request({
        method: 'delete',
        url: url
    })
}
export function removeRolesPower(url) {
    return request({
        method: 'delete',
        url: url
    })
}
// 获取所有权限
export function getAllPower(url) {
    return request({
        method: 'get',
        url: url
    })
}
//提交添加授权
export function putDistributionPower(url, params) {
    return request({
        method: 'post',
        url: url,
        data: params
    })
}
